<?php if(!IS_AJAX){?>


<div class="row" style="min-height:1000px;">
  <div class="col-sm-7 col-md-8 col-lg-9">
    <section class="panel">
      <div class="panel-body">
        <table class="table-bordered table" width="100%" border="0" cellspacing="0" cellpadding="0">
 <thead>
<tr>

    <td align="center">属性值</td>

    <td align="center">操作</td>
  </tr>
</thead>
          <tbody class="ajaxdatalistareaval" id="ajaxdatalistareaval<php> echo $_GET['type_id']</php>-{$attr_id}">
            <?php }?>
            
            
            
            <?php if(IS_AJAX){?>
            <!-- 数据主体 -->
            
            










<volist name="list" id="vo">
  <tr class="data_list" id="ajaxdatalistareaval{$attr_id}-{$vo.id}">
    
    <td>{$vo.val}</td>
   
    <td align="center"><a href="##" onClick="_openWindow('{:U('edit',array('id'=>$vo['id'],'attr_id'=>$attr_id, 'type_id' => $_GET['type_id']))}', 500, '修改属性可选值', '保存',  function(){ $('#ajaxdatalistareavalform').submit();}, '');">编辑</a> <if condition="getAccessMenu($accessList, 'Admin', 'Attr_val', 'delete')"> | <a class="deleteBtn" href="javascript:void(0);" rel="{:U('delete',array('id'=>$vo['id']))}" data-id="{$vo.id}">删除</a> </if></td>
  </tr>
</volist>








  
            <?php }?>
            <!-- 数据主体结束 -->
            
            <?php if(!IS_AJAX){?>
          </tbody>
        </table>
        <div id="ajaxdatalistareaval{$attr_id}pages"></div>
      </div>
    </section>
  </div>
  <div class="col-sm-5 col-md-4 col-lg-3">
    <div class="states-info">
      <div class="panel green-bg">
        <div class="panel-body">
          <div class="row">
            <div class="col-xs-3"> <i class="fa fa-hand-o-right"></i> </div>
            <div class="col-xs-7">
              <h4>添加属性可选值</h4>
              <span class="state-title"> <a class="text-success" href="##" onClick="_openWindow('<php> echo U('add',array('attr_id'=>$attr_id, 'type_id' => $_GET['type_id']))</php>', 500, '【<?php echo $attrname;?>】添加可选值', '保存', function(){ $('#ajaxdatalistareavalform').submit();}, '');">点击添加</a> </span> </div>
            <div class="col-xs-2"> <span class="fa fa-angle-right"></span> </div>
          </div>
        </div>
      </div>
    </div>
    <div class="panel">
      <header class="panel-heading"> 搜索 </header>
      <div class="panel-body">
        <form id="ajaxdatalistareaval{$Think.get.type_id}-{$attr_id}form" action="<?php echo U('Attr_val/index',array('attr_id'=>$attr_id, 'type_id' => $_GET['type_id']));?>">
          <div class="input-group m-bot15">
            <input type="text" name="keywords" class="form-control">
            <span class="input-group-btn">
            <button type="button" onClick="$('#ajaxdatalistareavalform').trigger('submit');" class="btn btn-default"><i class="fa fa-search"></i></button>
            </span> </div>
        </form>
       
      </div>
    </div>
  </div>
</div>
<script>$('#ajaxdatalistareaval{$Think.get.type_id}-{$attr_id}').ajaxlist();</script>

<?php }?>